package com.xusheng.cli.service;

import com.xusheng.cli.common.base.MyPage;
import com.xusheng.cli.common.base.MyService;
import com.xusheng.cli.entity.videoModule.ShortVideoVO;
import com.xusheng.cli.entity.videoModule.Video;
import com.xusheng.cli.req.VideoQueryReq;

import java.util.List;
import java.util.Map;

public interface VideoService extends MyService<Video> {

    MyPage<Video> videoList(VideoQueryReq req);

    boolean deleteVideo(long id);

    Map<String, Object> videoDetail(long id, long userId);

    Map<String, Object> playVideo(long videoId);

    List<Video> rankList(long categoryId, int limit);

    List<Video> listByPlayCount();

    List<Video> listByLikeCount();

    List<ShortVideoVO> getShortVideoList(Long userId, Boolean vip, int current);

    List<Video> recommendList();

    Map<String, Object> playVideoNew(long id);
}
